namespace HD.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    
    public class PostsType
    {
       
        public int Id { get; set; }
        [Required(ErrorMessageResourceName = "PostsTypeNameRequiredMessage", ErrorMessageResourceType = typeof(Resource))]
        [MaxLength(50, ErrorMessageResourceName = "PostsTypeNameMaxMessage", ErrorMessageResourceType = typeof(Resource))]
        public string Name { get; set; }
        [MaxLength(500, ErrorMessageResourceName = "PostsTypeDescriptionMaxMessage", ErrorMessageResourceType = typeof(Resource))]
        public string Description { get; set; }
    
        public virtual ICollection<Posts> Posts { get; set; }
    }
}
